﻿using MediatR;
using Process.DAL;
using System.ComponentModel.DataAnnotations;

namespace Process.Api.Application.Command
{
    public class AddProcessTypeCommand:IRequest<ApiResult<int>>
    {
        /// <summary>
        /// 工序分类编号
        /// </summary>
        [Required(ErrorMessage = "工序分类编号不能为空")]
        [StringLength(50, ErrorMessage = "工序分类编号长度不能超过50个字符")]
        public string ProcessTypeCode { get; set; }

        /// <summary>
        /// 工序分类名称
        /// </summary>
        [Required(ErrorMessage = "工序分类名称不能为空")]
        [StringLength(100, ErrorMessage = "工序分类名称长度不能超过100个字符")]
        public string ProcessTypeName { get; set; }

        /// <summary>
        /// 工序分类状态
        /// </summary>
        public bool ProcessTypeStatus { get; set; }

        /// <summary>
        /// 工序分类备注
        /// </summary>
        [StringLength(500, ErrorMessage = "备注长度不能超过500个字符")]
        public string? TypeRemark { get; set; }
    }
}
